package elitech.vietnam.weatherfashion.tabs;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import elitech.vietnam.weatherfashion.R;
import elitech.vietnam.weatherfashion.tabs.settings.SettingsFragment;

public class SettingsContainerFragment extends BaseContainerFragment {

	private boolean mIsViewInited;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		return inflater.inflate(R.layout.container_fragment, null);
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		if (!mIsViewInited) {
			mIsViewInited = true;
			initView();
		}
	}

	private void initView() {
		replaceFragment(new SettingsFragment(), false);
	}
//
//	@Override
//	public void onActivityResult(int requestCode, int resultCode, Intent data) {
//		super.onActivityResult(requestCode, resultCode, data);
//		Log.w("onActivityResult", this.getClass().getName() + " : " + requestCode + " : " + (requestCode&0xffff));
//		int n = requestCode & 0xffff; 
//		switch (n) {
//		case MainActivity.REQ_CODE_EDIT_PROFILE_ALBUM:
//			getChildFragmentManager().findFragmentByTag(EditProfileFragment.class.getName()).onActivityResult(requestCode, resultCode, data);
//			break;
//		case MainActivity.REQ_CODE_EDIT_PROFILE_CAMERA:
//			getChildFragmentManager().findFragmentByTag(EditProfileFragment.class.getName()).onActivityResult(requestCode, resultCode, data);
//			break;
//
//		default:
//			break;
//		}
//	}
}
